# this modeule provides the ability to pass the current user to the model 
# the controller needs this capability because the project object
# needs to checnk the current user to make a number of permission related
# decisions.
module UserInfo
  
  def current_user
    Thread.current[:user]
  end
 
  def self.current_user=(user)
    Thread.current[:user] = user
  end

end